package com.koron.order.linepatrol.satellite.bean.convertor;

import com.koron.order.linepatrol.satellite.bean.excel.LinePatrolSatelliteExcel;
import com.koron.order.linepatrol.satellite.bean.po.LinePatrolSatellite;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * @author jzp
 * @since 2023/2/8
 */
@Mapper(componentModel = "spring")
public interface LinePatrolSatelliteConvertor {

    @Mappings({
            @Mapping(source = "towerNumber", target = "towerName"),
            @Mapping(source = "riskSub", target = "riskType")
    })
    LinePatrolSatellite excelToEntity(LinePatrolSatelliteExcel excel);
}
